package com.feihong.txgw.inter.contract.adr;

import com.feihong.txgw.model.base_bean.BaseResponse;
import com.feihong.txgw.model.bean.deliveryAdr.DeliveryAdrEntity;
import com.feihong.txgw.ui.mvp.model.IBaseModel;
import com.feihong.txgw.ui.mvp.precenter.AbBasePrecenter;
import com.feihong.txgw.ui.mvp.view.IBaseActivity;

import io.reactivex.Observable;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName IDeliveryAdrEditContract
 * @package com.feihong.txgw.inter.contract.adr
 * @data 2018/5/7 19:38
 * @Describe
 * @Change
 */
public interface IDeliveryAdrEditContract {

    interface IDeliveryAdrEditMainView extends IBaseActivity{
        void editAdrResult(BaseResponse result);

    }

    interface IDeliveryAdrEditMainModel extends IBaseModel{

        Observable<BaseResponse> editAdr(DeliveryAdrEntity deliveryAdrEntity, String adrInfo);
    }

abstract class AbDeliveryAdrEditMainPrecenter extends AbBasePrecenter<IDeliveryAdrEditMainModel,IDeliveryAdrEditMainView>{
    public abstract void editAdr(String adrInfo,DeliveryAdrEntity deliveryAdrEntity);
}
}
